﻿namespace Assets.Scripts.DL.Enemy.CommonEnemy.States.CommonState {
	public class CommonStateHFSM : CommonHFSM {
		public CommonStateHFSM(Controller controller, StateEnum stateName) : base(controller, stateName) {
			AddConditionToSelf(() => true);

			AddNewTransition(StateEnum.AtkHFSM, () => _controller.IsPlayerInAtkRange() && _controller.CanAtk());
			AddNewTransition(StateEnum.SpecialHFSM, () => _controller.StateData.IsSpecialState);
		}
	}
}
